import request from "@/utils/request";
import uploadFileRequest from "@/utils/upload_file_request";

// 获取字典列表
export const getDictionaryList = (options: any) => {
    return request({
        method: "GET",
        url: "/api/dictionary/get-dictionary",
        data: options
    })
}


// 获取分类列表

export const getClassificationList = (options: any) => {
    return request({
        method: "GET",
        url: "/api/classify/get-classify/",
        data: options
    })
}

// 获取资源列表

export const getResourceList = (options: any) => {
    return request({
        method: "GET",
        url: "/api/resource/get-resource/",
        data: options
    })
}

// 新增站点收录
export const addSiteInclusion = (options: any) => {
    return request({
        method: "POST",
        url: "/api/siteInclusion/add-siteInclusion",
        data: options
    })
}
// 发送验证码
export const postSendCode = (options: any) => {
    return request({
        method: "POST",
        url: "/api/common/send-verification-code",
        data: options
    })
}
// 验证码登录
export const postVerifyCodeLogin = (options: any) => {
    return request({
        method: "POST",
        url: "/api/users/verify-code-login",
        data: options
    })
}
// 注册
export const postRegister = (options: any) => {
    return request({
        method: "POST",
        url: "/api/users/register",
        data: options
    })
}
// 密码登录
export const postPasswordLogin = (options: any) => {
    return request({
        method: "POST",
        url: "/api/users/login",
        data: options
    })
}

export const getUserInfo = (options: any) => {
    return request({
        method: "GET",
        url: "/api/users/get-userInfo",
        data: options
    })
}
// 修改用户信息
export const updateUserInfo = (options: any) => {
    return request({
        method: "PUT",
        url: "/api/users/updata-userInfo",
        data: options
    })
}

// 上传图片
export const uploadFiles = (options: any) => {
    return uploadFileRequest({
        method: "POST",
        url: "/api//common/uploadFile",
        data: options
    })
}

// 星座运势
export const getConstellationFortune = (options: any) => {
    return request({
        method: "GET",
        url: "/api/thirdPartyAPI/get-constellation-fortune",
        data: options
    })
}

// 星座配对
export const getConstellationPairing = (options: any) => {
    return request({
        method: "GET",
        url: "/api/thirdPartyAPI/get-constellation-pairing",
        data: options
    })
}
// 获取广告列表
export const getAdvertisementListApi = (options: any) => {
    return request({
        method: "GET",
        url: "/api/advertisement/get-advertisement",
        data: options
    })
}


// 获取留言列表
export const getLeaveMessageListApi = (options: any) => {
    return request({
        method: "GET",
        url: "/api/leave-message/get-leave-message",
        data: options
    })
}
// 新增留言
export const addLeaveMessageApi = (options: any) => {
    return request({
        method: "POST",
        url: "/api/leave-message/add-leave-message",
        data: options
    })
}
//   删除留言
export const deleteLeaveMessageApi = (options: any) => {
    return request({
        method: "DELETE",
        url: "/api/leave-message/delete-leave-message",
        data: options
    })
}
// 点赞
export const likeLeaveMessageApi = (options: any) => {
    return request({
        method: "POST",
        url: "/api/leave-message/like-leave-message",
        data: options
    })
}